<?php
namespace Home\Model;
use Think\Model;
class ParameterModel extends Model{
	public function get_parameter_list($condition = array(), $limit = 20, $page = 1, $field = "*", $order = "pa_id desc")
    {
        $data = $this->where($condition)->field($field)->limit($limit)->page($page)->order($order)->select();
        return $data;
    }

    public function get_count($condition = array()){
        return $this->where($condition)->count();
    }
}
?>